import { create } from "zustand";
import { persist } from "zustand/middleware";

interface SettingsState {
  colorPrimary: string;
  setColorPrimary: (value: string) => void;
}

export const useSettingsStore = create<SettingsState>()(
  persist(
    (set) => ({
      colorPrimary: "#1DA57A",
      setColorPrimary: (colorPrimary) => set({ colorPrimary }),
    }),
    {
      name: "app-settings",
    },
  ),
);
